import 'normalize.css';
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhLocale from 'element-plus/es/locale/lang/zh-cn'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createPinia } from 'pinia'
import plugins from './plugins'

import App from './App.vue'
import router from './router/index.js'

const app = createApp(App)

for ( const  [name, component] of
    Object.entries(ElementPlusIconsVue)) {
    app.component(name, component)
}
app.use(ElementPlus,  { locale: zhLocale })
app.use(createPinia())
app.use(router)
app.use(plugins)
app.mount('#app')
